#include <iostream>
#ifndef SAFE_DELETE
#define SAFE_DELETE(p) { if(p){delete(p); (p)=nullptr;} }
#endif
using namespace std;
//#include"adapter.h"
#include"multiadapter.h"
int main()
{
//    IRussiaSocket *pAdapter=new PowerAdapter(); //组合方式
    IRussiaSocket *pAdapter=new MyPowerAdapter(); //多继承方式
    pAdapter->Charge();
    SAFE_DELETE(pAdapter);
    getchar();
    return 0;
}
